import request  from "@/http/request.js";


export function selectPageAlbum(data){
      return request({
        url:'/album/selectPageAlbum',
        method:'post',
        data
      })
}

export function addAlbum(data){
    return request({
        url:"/album/addAlbum",
        method:'post',
        data
    })
}

export function selectAlbumDetail(data){
    return request({
        url:'/album/selectAlbumDetail?albumId='+data,
        method:'get',
        data
    })
}

export function updateAlbumDetail(data){
    return request({
        url:'/album/updateAlbumDetail',
        method:'post',
        data
    })
}

export function deleteAlbum(data){
    return request({
        url:'/album/deleteAlbum?albumId='+data,
        method:'get',

    })
}